set groups {{cfg_group}} protocols igmp-snooping vlan all proxy
set groups {{cfg_group}} protocols evpn multicast-mode ingress-replication
set groups {{cfg_group}} protocols evpn default-gateway do-not-advertise
set groups {{cfg_group}} forwarding-options multicast-replication evpn irb local-remote
{%     if device_model.startswith('qfx51') %}
set groups {{cfg_group}} forwarding-options vxlan-routing overlay-ecmp
{%     endif %}
{%     for phy_int in device_abstract_config.get('physical_interfaces', []) %}
{%         if phy_int.get('interface_type') == 'irb' %}
set groups {{cfg_group}} interfaces irb gratuitous-arp-reply
{%             for li in phy_int.get('logical_interfaces', []) %}
{%                 set name = li.get('name') %}
{%                 set unit = li.get('unit') %}
{%                 for ip_addr in li.get('ip_addresses', []) %}
{%                     set address = ip_addr.get('address') %}
{%                     set family = ip_addr.get('family') %}
set groups {{cfg_group}} protocols igmp interface {{name}}
set groups {{cfg_group}} interfaces irb unit {{unit}} family {{family}} address {{address}}
set groups {{cfg_group}} interfaces irb unit {{unit}} mac 00:00:5e:22:22:22
{%                 endfor %}
{%             endfor %}
{%         endif %}
{%     endfor %}
{%     for vlan in device_abstract_config.get('vlans', []) %}
{%         set vlan_name = vlan.get('name') %}
{%         set vni = vlan.get('vxlan_id') %}
{%         set vlan_id = vni %}
{%         for intf in vlan.get('interfaces', []) %}
{%             set int_name = intf.get('name') %}
{%             if 'irb' not in int_name %}
{%                 continue %}
{%             endif %}
set groups {{cfg_group}} vlans {{vlan_name}} l3-interface {{int_name}}
{%         endfor %}
set groups {{cfg_group}} vlans {{vlan_name}} vlan-id {{vlan_id}}
set groups {{cfg_group}} vlans {{vlan_name}} vxlan vni {{vni}}
{%     endfor %}
